# 最简单的输出
print('hello world')

# 输出变量
price = 10
print(price)
numbers = 5
print(price,numbers)
print('总价格为：',price*numbers)

# sep 分割符
print('hello','world')
print('hello','world',sep=',')
print('2024','08','14',sep='-')
print('852051958','qq.com',sep='@')

# end 结束符
print('hello',end=',')
print('world')

print('hello',end='\n\n')
print('world')

# file操作
file_source = open('demo.txt','w')
print('人生苦短，我用python',file=file_source)
file_source.close()